﻿using FI.Core.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FI.Core
{
    /// <summary>
    /// This attribute is used to specify the name of audit function.
    /// </summary>
    public class AuditFunctionAttribute: Attribute
    {
        /// <summary>
        /// The name of audit function
        /// </summary>
        public string FunctionName { get; private set; }

        /// <summary>
        /// Create a new <see cref="AuditFunctionAttribute"/>
        /// </summary>
        /// <param name="functionName">The name of audit function.</param>
        public AuditFunctionAttribute(string functionName)
        {
            Guard.ArgumentNotNullOrEmpty(functionName, "functionName");
            this.FunctionName = functionName;
        }
    }
}
